package com.ruoyi.system.domain;

import com.ruoyi.common.core.domain.entity.SysBookType;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 图书对象 sys_book
 * 
 * @author 杨正
 * @date 2021-10-15
 */
public class SysBook extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 图书编号 */
    private Integer bookId;

    /** 图书名称 */
    @Excel(name = "图书名称")
    private String bookName;

    /** 图书作者 */
    @Excel(name = "图书作者")
    private String bookAuthor;

    /** 删除标志（0代表存在 2代表删除） */
    private String delFlag;

    /** 状态 */
    @Excel(name = "状态")
    private String bookStatus;

    /** 图书类型 */
    @Excel(name = "图书类型")
    private Integer bookType;

    private SysBookType type;

    public SysBookType getType() {
        return type;
    }

    public void setType(SysBookType type) {
        this.type = type;
    }

    public void setBookId(Integer bookId)
    {
        this.bookId = bookId;
    }

    public Integer getBookId() 
    {
        return bookId;
    }
    public void setBookName(String bookName) 
    {
        this.bookName = bookName;
    }

    public String getBookName() 
    {
        return bookName;
    }
    public void setBookAuthor(String bookAuthor) 
    {
        this.bookAuthor = bookAuthor;
    }

    public String getBookAuthor() 
    {
        return bookAuthor;
    }
    public void setDelFlag(String delFlag) 
    {
        this.delFlag = delFlag;
    }

    public String getDelFlag() 
    {
        return delFlag;
    }
    public void setBookStatus(String bookStatus)
    {
        this.bookStatus = bookStatus;
    }

    public String getBookStatus()
    {
        return bookStatus;
    }
    public void setBookType(Integer bookType)
    {
        this.bookType = bookType;
    }

    public Integer getBookType()
    {
        return bookType;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("bookId", getBookId())
            .append("bookName", getBookName())
            .append("bookAuthor", getBookAuthor())
            .append("delFlag", getDelFlag())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("bookStatus", getBookStatus())
            .append("bookType", getBookType())
                .append("type",getType())
            .toString();
    }
}
